<?php echo $this->doctype();
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<?php
echo $this->headMeta();
echo $this->headTitle();
echo $this->jQuery();
echo $this->headLink();
echo $this->headScript();
?>
</head>
<body>
	<div class="header_wrapper">
		<table class="header">
			<tbody>
				<tr>
					<td class="logo"></td>
					<td class="disconnect_outer">
						<div class="disconnect">
							<a href="/"> <img class="disconnect_logo"
								src="/css/main/images/disconnect.png" /> Se déconnecter </a>
						</div></td>
					<td class="right"></td>
				</tr>
			</tbody>
		</table>
	</div>
	<?php
	if(count($this->error) > 0 || count($this->message) > 0) {?>
	<table id="error-msg-table">
		<tbody>
		<?php if(count($this->error) > 0)
		{
			?>
			<tr>
				<td id="error-menu">Il y a <?php echo count($this->error);?> erreur<?php if(count($this->error) > 1) {echo "s";}?>.</td>
				<td></td>
			</tr>
			<?php
			foreach ($this->error as $e) {
				?>
			<tr class="tmp error-box-outer">
				<td colspan="2" class="error-box">
				<img class="arrow" src="/css/main/images/arrow-error.png"/>
				<?php echo $e; ?></td>
			</tr>
			<?php }?>
			<?php
		}
		if(count($this->message) > 0)
		{
			?>
			<tr>
				<td id="msg-menu">Il y a un <?php echo count($this->message);?> message<?php if(count($this->message) > 1) {echo "s";}?>.</td>
				<td></td>
			</tr>

			<?php
			foreach ($this->message as $m) {
				?>
			<tr class="tmp msg-box-outer">
				<td colspan="2" class="msg-box">
				<img class="arrow" src="/css/main/images/arrow-msg.png"/>
				<?php echo $m; ?></td>
			</tr>
			<?php }?>
			<?php
		} ?>
		</tbody>
	</table>
	<?php }?>
	<div class="content_wrapper">
	<?php echo $this->layout()->content; ?>
	</div>

</body>